<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<link rel="icon" href="<c:url value='/images/favicon.ico'/>">

<title>修改密码</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

<link rel="stylesheet" href="<c:url value='/css/user/login.css'/>">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>

<body>
	<div class="div0">
		<span>修改密码</span>
	</div>

	<div class="container">
		<form action="<c:url value='/UserServlet'/>" method="post"
			target="_top">
			<input type="hidden" name="method" value="updatePassword" />
			<table>
				<tr>
					<td><label class="error">${msg }</label></td>
					<td colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td align="right">原密码:</td>
					<td><input class="input" type="password" name="loginpass"
						id="loginpass" value="${user.loginpass }" /></td>
					<td><label id="loginpassError" class="error"></label></td>
				</tr>
				<tr>
					<td align="right">新密码:</td>
					<td><input class="input" type="password" name="newloginpass"
						id="newloginpass" value="${user.newloginpass }" /></td>
					<td><label id="newpassError" class="error"></label></td>
				</tr>
				<tr>
					<td align="right">确认密码:</td>
					<td><input class="input" type="password" name="reloginpass"
						id="reloginpass" value="${user.reloginpass }" /></td>
					<td><label id="reloginpassError" class="error"></label></td>
				</tr>
				<tr>
					<td align="right"></td>
					<td><img id="vCode" src="<c:url value='/VerifyCodeServlet'/>"
						border="1" /> <a href="javascript:_change();">看不清，换一张</a></td>
				</tr>
				<tr>
					<td align="right">验证码:</td>
					<td><input class="input col-md-5" type="text" name="verifyCode"
						id="verifyCode" value="${user.verifyCode }" /></td>
					<td><label id="verifyCodeError" class="error"></label></td>
				</tr>

				<tr>
					<td align="right"></td>
					<td><input class="btn btn-default " id="submit" type="submit"
						value="修改密码" /></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
